﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Net.Sockets;

namespace EncryptionServer.CrcCheck.CrcThread
{
    class ThreadControl
    {
        //属性
        public Socket S { get; set; }
        public DataAccess.DalData Dal { get; set; }
        public FrmCRCCheck frm { get; set; }
        public void StartThread()
        {
            try
            {
                ThreadCrc tc = new ThreadCrc();
                tc.Dal = Dal;
                tc.S = S;
                tc.frm = frm;
                Thread th = new Thread(tc.Start);
                th.IsBackground = true;
                th.Start();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
